package com.wish.firstExample;

public class ChildrensPrice extends Price {

	@Override
	double getCharge(int days) {
		double basePrice = 50; 
		if(days > 3){
			basePrice = basePrice * 0.8;
		}
		return basePrice * days;
	}

	@Override
	double getFrequentRenterPoints(int days) {
		return 0.5;
	}

}
